#ifndef WEBHISTORYCOMPLETER_H
#define WEBHISTORYCOMPLETER_H

#include <QAbstractItemModel>
#include <QAbstractListModel>
#include <QCompleter>

class QWebHistory;

class WebHistoryModel: public QAbstractListModel
{
	Q_OBJECT
public:
	WebHistoryModel(QObject *parent=NULL, QWebHistory *history=NULL);

	int rowCount(const QModelIndex &index) const;
	QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;

	void setWebHistory(QWebHistory *history);
	QWebHistory* getWebHistory() { return m_history; }
	void refetchHistory();
private:
	QWebHistory *m_history;
};

class WebHistoryCompleter
{
public:
	WebHistoryCompleter();
};

#endif // WEBHISTORYCOMPLETER_H
